﻿using IDAL;
using Microsoft.EntityFrameworkCore;
using Models;
using System;
using System.Collections.Generic;
using System.Text;

namespace DAL
{
    public class UserBalanceInfoDAL: BaseDeleteDAL<UserBalanceInfo>, IUserBalanceInfoDAL
    {
        /// <summary>
        /// 用户余额表的数据访问层
        /// </summary>
        private UnmanContexts _dbContext;
        public UserBalanceInfoDAL(
            UnmanContexts dbContext
            ) : base(dbContext)
        {
            _dbContext = dbContext;
        }
        /// <summary>
        /// 获取用户余额表的所有数据
        /// </summary>
        /// <returns></returns>
        public DbSet<UserBalanceInfo> GetUserBalanceInfos()
        {
            return _dbContext.UserBalanceInfo;
        }

    }
}
